import request from '@/utils/request'

// 查询购物订单列表
export function listShopping_order(query) {
  return request({
    url: '/shopping_order/shopping_order/list',
    method: 'get',
    params: query
  })
}

// 查询购物订单详细
export function getShopping_order(id) {
  return request({
    url: '/shopping_order/shopping_order/' + id,
    method: 'get'
  })
}

// 新增购物订单
export function addShopping_order(data) {
  return request({
    url: '/shopping_order/shopping_order',
    method: 'post',
    data: data
  })
}

// 修改购物订单
export function updateShopping_order(data) {
  return request({
    url: '/shopping_order/shopping_order',
    method: 'put',
    data: data
  })
}

// 删除购物订单
export function delShopping_order(id) {
  return request({
    url: '/shopping_order/shopping_order/' + id,
    method: 'delete'
  })
}
